﻿<?php
require('config.php');
switch($_REQUEST['action']) {
	case "drivers-count":
		$p = $DB->fetch_array($DB->query('SELECT COUNT(*) AS pocet FROM taxi__activity WHERE city="'.$_REQUEST['city'].'" AND availability="1"'));
		echo $p['pocet'];
		break;
		
	default:
		break;
}
?>